# 创建时间：2025/4/27 星期日 22:20
# 创建人：李德才
a, b = 10, 20
print("a>b", a > b)
print("a<b", a < b)
print("a>=b", a >= b)
print("a<=b", a <= b)
print("a==b", a == b)
print("a!=b", a != b)
print("a is b", a is b)  ## 这样比较的是标识，而不是值
print("a is not b", a is not b)
print("a is None", a is None)
print("a is not None", a is not None)

a = 10
b = 10
# a = 20  ## 和JS不同，b 的值还是 10
print("str(a == b)：" + str(a == b))
print("str(a is b)：" + str(a is b))

list1 = [1, 2, 3]
list2 = [1, 2, 3]
print("str(list1 == list2) ：" + str(list1 == list2))  ## 比较的是值
print("str(list1 is list2) ：" + str(list1 is list2))  ## 比较的是标识
print("str(str(id(list1))+ str(id(list2))) ：" + str(str(id(list1))+ str(id(list2))))
